﻿@*@model IEnumerable<Marketplace.Engine.Model.RentProperty>*@
@model Marketplace.Mvc.Models.RentFilterModel
@{
    ViewBag.Title = "To Rent Properties";
}

<h2>ToRent</h2>

<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>


@using (Ajax.BeginForm("GetToRentList", new { filter = Model }, new AjaxOptions { UpdateTargetId = "rentList" }))
{
<div>
    @Html.LabelFor(x => x.UpperPrice)                          
    @Html.EditorFor(x => x.UpperPrice)

    <input type="submit" value="Search" />
</div>
}
<div id="rentList">
   
</div>

    